using System;
using System.Collections.Generic;
using UnityEngine;
using QFramework;

namespace ProjectMyFarmAndShe
{
	public partial class SelectHightLight : ViewController
	{
		public static SelectHightLight Default;
		
		public List<Sprite> Sprites = new List<Sprite>();
		public int SpriteIndex = 0;

		private void Awake()
		{
			Default = this;
		}

		void Start()
		{
			// Code Here
		}

		private void Update()
		{
			if (Time.frameCount % 20 == 0)
			{
				if (SpriteIndex > Sprites.Count - 1)
				{
					SpriteIndex = 0;
				}
				SelfImage.sprite = Sprites[SpriteIndex++];
			}
		}

		private void OnDestroy()
		{
			Default = null;
		}
	}
}
